package cn.zyq.ykb.system.common;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 分页查询参数
 */
@Api(tags = "分页查询参数对象")
public class PageParam implements Serializable {
    /**
     * 当前页
     */
    @ApiModelProperty("当前页码")
    private Integer page = 1;
    /**
     * 每页条数
     */
    @ApiModelProperty("每页条数")
    private Integer pageSize = 10;
    /**
     * 参数接收
     */
    @ApiModelProperty("条件参数对象")
    private JSONObject kv = new JSONObject();

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public JSONObject getKv() {
        return kv;
    }

    public void setKv(JSONObject kv) {
        this.kv = kv;
    }
}
